﻿namespace Z2.Editor
{
	using System;
	using System.Collections.Generic;
	using System.Text;

	public enum FieldObjectType : uint
	{
		MoveableGravity = 0,
		NoGravity = 1,
		NoGravityBend = 2
	}

	public class EditorFieldObject : EditorField
	{
		private FieldObjectType m_type;
		private int m_bend;

		public EditorFieldObject(long id, EditorObject obj)
			: base(id, obj)
		{
		}

		public EditorFieldObject(EditorObject obj)
			: base(obj)
		{
			this.m_type = FieldObjectType.MoveableGravity;
			this.m_bend = 0;
		}

		public int Bend
		{
			get
			{
				return this.m_bend;
			}
			set
			{
				this.m_bend = value;
			}
		}

		public FieldObjectType Type
		{
			get
			{
				return this.m_type;
			}
			set
			{
				this.m_type = value;
			}
		}

	}
}
